package com.sky.easyexcel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor(staticName = "of")
@NoArgsConstructor
@Builder
public class StudentEntity {
    //学生实体类
    @ExcelProperty(value = "学生id", index = 0)
    private int id;//学生id
    @ExcelProperty(value = "学生姓名", index = 1)
    private String name;//学生姓名
    @ExcelProperty(value = "学生年龄", index = 2)
    private int age;//学生年龄
    @ExcelProperty(value = "学生性别", index = 3)
    private String gender;//学生性别
    @ExcelProperty(value = "学生地址", index = 4)
    private String address;//学生地址
}
